package com.ruubypay.web.core.generator;

import com.ruubypay.web.core.generator.plugins.FreeMarkerUtil;

public class SimpleFreeMarkerGenerator {

    public static void main(String[] args) throws Exception {
        String path = System.getProperty("user.dir")+"/src/main/";
        System.out.println(path);
        generate("system_user", path);
    }

    public static void generate(String domainObjectName, String targetPath){
        FreeMarkerUtil util = new FreeMarkerUtil();
        util.viewTemplatePrint(domainObjectName,"template-clear-list.ftl",targetPath,null,domainObjectName.toLowerCase()+"_list.jsp");
    }
}
